package recharge

import (
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"
)

const TableNameRechargeType = "recharge_type"

const (
	InternalDefault = iota
	InternalPay
	InternalLocalEWallet
	InternalPIX
	InternalLocalUsdt
	InternalUSDT
	InternalOnlinePayment
	InternalLocalBank
	InternalPAYTM
	InternalDebitCard
	InternalBankCardQRCode
	InternalLocalUPI
	InternalThirdBankCard
	InternalTRX
	InternalARPay
	InternalNewUPI
	InternalUSDTFB
)

// RechargeType 充值类型
type RechargeType struct {
	schema.Model
	RechargeID     int64  `gorm:"type:bigint;not null;comment:渠道id"`
	SelectedIcon   string `gorm:"type:varchar(1024);not null;comment:选择后图标"`
	UnselectedIcon string `gorm:"type:varchar(1024);not null;comment:选择前图标"`
	Name           string `gorm:"type:varchar(64);not null;comment:前台显示名称"`
	InternalName   string `gorm:"type:varchar(64);not null;comment:内部名称"`
	Status         int32  `gorm:"type:tinyint;not null;comment:状态[1开启,2关闭]"`
	ViewType       string `gorm:"type:varchar(30);not null;comment:查看类型"`
	IsCopyIcon     uint8  `gorm:"type:tinyint;not null;comment:是否复制图片1是2不是"`
	Sort           int32  `gorm:"type:int;not null;comment:优先级"`
}

func (*RechargeType) TableName() string {
	return TableNameRechargeType
}
